<!DOCTYPE html>
<!--[if IE 7 ]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8 oldie"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><!--<![endif]-->
<html class=" js no-flexbox canvas canvastext postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache" lang="zh-CN">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="author" content="">
	<meta property="wb:webmaster" content="3caf5a5b94e6991e" />


	

	<link rel="shortcut icon" href="/static/images/chine.ico"/>

	<title> 派森吧 - pythonpub.com | 享受python带来的便利以及快乐 </title>


	<link type="text/css" rel="stylesheet" href="/static/css/SyntaxHighlighter/shCoreDefault.css"><link>

	<link id="diginews_style-css" media="all" type="text/css" href="/static/css/style.css" rel="stylesheet">
	<script src="/static/js/modernizr-2.6.1.min.js?ver=2.6.1" type="text/javascript"></script>
	<script>window.jQuery || document.write('<script src="/static/js/jquery-1.7.2.min.js"><\/script>')</script>
	<script src="/static/js/scripts.js?ver=1.0.0" type="text/javascript"></script>
	<script src="/static/js/base.js" type="text/javascript"> </script>
	
	<script src="/static/js/scrollToTop.js"></script>
	<script src="/static/js/inputFocusOrBlur.js"></script>
	<script src="/static/js/jquery.form.js"></script> 


	<!--[if lt IE 9]>
	    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->


	<script language="JavaScript" src="/static/js/SyntaxHighlighter/shCore.js"></script> 
	<script language="JavaScript" src="/static/js/SyntaxHighlighter/shAutoloader.js"></script>
	<script language="JavaScript" src="/static/js/loadSyntaxHighlighter.js"></script>
	<script language="JavaScript" src="/static/js/keyboardControl.js"></script>


   <style type="text/css">
.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}
</style>
<style id="custom-background-css" type="text/css">
body.custom-background { background-image: url('/static/images/bg.jpg'); background-repeat: repeat; background-position: top left; background-attachment: scroll; }
</style>

</head>

<body class="single single-post postid-58 single-format-standard custom-background single-author">
<div id="container">
	<header id="branding" role="banner">
		<div id="inner-header" class="clearfix">
			
<hgroup id="site-heading">
<h1 id="site-title">
<a rel="home" title="派森吧-pythonpub.com" href="/">python pub</a>
</h1>
<h2 id="site-description">享受python带来的便利以及快乐 </h2>
</hgroup>


<nav id="access" role="navigation">
<h1 class="assistive-text section-heading">Main menu</h1>
<div class="skip-link screen-reader-text">
<a title="Skip to content" href="#content">Skip to content</a>
</div>

{% include '/head.html' %}
</nav>
</div>
</header>

<div id="content" class="clearfix">
	<div id="main" class="col620 clearfix" role="main">
	
		<article id="post-58" class="post-58 post type-post status-publish format-standard hentry category-1">
			<header class="entry-header">
				<div class="entry-meta single-date">
					<a rel="bookmark" title="8:01 上午" href="/article/{{post.id}}">
					<time class="entry-date" pubdate="" datetime="2012-04-17T08:01:23+00:00">
					
					{{ post.post_create_time|safe }}
					</time>
					</a>
					</div>

				
				<h1 class="entry-title">{{post.post_title}}</h1>

								<div class="entry-meta">
					<span class="byline">
					<span class="sep"> by </span>
					<span class="author vcard">
						<a class="url fn n" rel="author" title="View all posts by dan" href="/">dan</a>
					</span>
					</span>

					<span class="sep"  style="float:right"> <a title="{{post.post_title}}" href="/article/{{post.id}}#comments">{{post.comment_count}}条评论</a></span>
					<span class="sep" style="float:right"> {{ post.view_num }}人阅读</span>


				</div>
			</header>
			<div class="entry-content post_content">

    				{{ (post.post_content|safe) }} 
				
			</div>

			<script type="text/javascript"><!--
				google_ad_client = "ca-pub-3421553373953599";
				/* 派生文章下方 */
				google_ad_slot = "4648218430";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
			</script>
			<script type="text/javascript"
			src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
			<footer class="entry-meta">
				<span class="cat-links">
Posted in
<a rel="tag" title="查看 {{post.categorys.category_name}} 中的全部文章" href="/category/{{post.categorys.id}}">{{post.categorys.category_name}}</a>
</span>
<span class="sep"> | </span>
<span class="tag-links" >
Tagged:
{% for tag in post.tags %}
			<span><a rel="tag" href="/tag/{{tag.id}}">{{tag.name}}</a></span>
		
			{% endfor %}

</span>


			</footer>
		</article>


<div id="comments">
<div id="respond">

	<h3 id="reply-title">
		猜猜你喜欢的文章
	</h3>
<form id="commentform">
	{% for a in articles %}	
		<li position="0">
		
		<a class="wp_rp_title" href="/article/{{a.id}}">{{a.post_create_time}}--{{a.post_title}}</a>
		</li>
	{% endfor %}
</form>	
</div>
</div>

<script src="/static/js/comment.js"></script> 

<div id="comments">
<h2 id="comments-title">
One thought on “
<span>{{post.post_title}}</span>
”
</h2>

<ol class="commentlist">
		{% for c in postcoments %}

		<li id="li-comment-{{c.id}}" class="comment even thread-even depth-1">
		<article id="comment-{{c.id}}" class="comment">
		<footer class="clearfix comment-head">
			<div class="comment-author vcard">
			<img class="avatar avatar-50 photo" width="50" height="50" src="/static/images/{{c.id%10}}.png" alt="">
			<cite class="fn">{{c.author_name}}</cite>
			</div>
			<div class="comment-meta commentmetadata">
			<a href="#comments">
			<time datetime="2013-01-01T02:07:46+00:00" pubdate=""> {{c.comment_create_time}} </time>
			</a>
	
			</div>
			</footer>

			<div class="comment-content">
			<p>{{c.content}}</p>
			</div>
			<div class="act">
<a onclick="MGJS_CMT.reply('authorid-{{c.id}}', 'comment');" href="javascript:void(0);">回复</a>
|</div>

	</article>
		</li>

	    {% endfor %}

		</ol>


<div id="respond">
	<h3 id="reply-title">发表评论(*为必填项)</h3>
	<form id="commentform" method="post" action="/article/addcomment">
  
    {{ form.hidden_tag() }}
    <p>
    {{form.post_id(type='hidden', value=post.id)}}
</p>

       <p class="comment-form-author">
            {{ form.author_name.label  }} <span class="required">*</span>
            {{ form.author_name(size=30) }}

       </p>

      <p class="comment-form-email"> 
            {{ form.author_email.label }} <span class="required">*</span>
            {{ form.author_email(size=30)}}
  
      </p>

      <p class="comment-form-url">  
            {{ form.author_url.label }}
            {{ form.author_url(size=30)}}
      </p>

      <p class="comment-form-comment">  
            {{ form.content.label }}
            {{ form.content(rows=8, cols=30)}}
      </p>
 

      <p class="form-submit">
        {{ form.submit }}
        </p>
	</form>
</div>
</div>



</div>		




<div id="sidebar" class="widget-area col300" role="complementary">
<div id="sidebar-wrap" class="clearfix">
	{% include '/sider.html' %}
</div>
</div>



</div>










<footer id="colophon" role="contentinfo">
<div id="site-generator">
{% include '/foot.html' %}
</div>
</footer>



</div>

</body>































	
